Hacked to use the debug mode and to randomize the game.
